<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title> 工单列表</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
	<link href="__STATIC__/css/font-awesome.css" rel="stylesheet">
	<link href="__STATIC__/css/plugins/jsTree/style.min.css" rel="stylesheet">
	<link href="__STATIC__/css/animate.css" rel="stylesheet">
	<link href="__STATIC__/css/style.css" rel="stylesheet">
	<style type="text/css">
		.td-title{width: 120px;}
		.w300{width: 400px;}
	</style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg  pace-done">
<include file="Public/left" title="left" />
<div id="wrapper">
	<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
		<include file="Public/top" title="top" />
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content" style="padding-bottom: 0;">
					<table class="table table-striped">
						<tbody>

						<tr>
							<td class="td-title">工单标题：</td>
							<td colspan="5">{$info.desc}</td>
						</tr>
						<tr>
							<td class="td-title">用户ID：</td>
							<td class="w300">{$info.userid}</td>
							<td class="td-title">用户邮箱：</td>
							<td> {$info.userid|getName}</td>
							<td class="td-title">用户手机号：</td>
							<td> {$info.userid|getPhone}</td>
						</tr>
						<tr>
							<td class="td-title">工单编号：</td>
							<td class="w300">{$info.tno} </td>
							<td class="td-title">问题分类：</td>
							<td>{$info.typename}</td>
							<td class="td-title">提交时间：</td>
							<td>{$info.addtime}</td>
						</tr>

						<tr>
							<td class="td-title">工单用户名称：</td>
							<td class="w300">{$info.tname}</td>
							<td class="td-title">工单邮箱：</td>
							<td> {$info.email}</td>
							<td class="td-title">工单手机号：</td>
							<td> {$info.tel}</td>
						</tr>
						<tr>
							<td class="td-title">状态：</td>
							<td colspan="6">{$info.status|getTicketzt} </td>
						</tr>
						<tr>
							<td class="td-title"> 机密信息： </td>
							<td colspan="6"> {$info.jimidesc} </td>
						</tr>
						</tbody>
					</table>
				</div>

				<div class="ibox chat-view">
					<div class="ibox-title">
						沟通记录
					</div>
					<div class="ibox-content">
						<div class="row">
							<div class="col-md-12">
								<div class="chat-discussion" style="height: auto;">
									<foreach name="list" item="v" key="k">
										<div class="chat-message">
											<img class="message-avatar" src="__STATIC__/img/<if condition='$v.userid eq $info.userid'>pgyuser2.png<else/>pgykf.png</if>" alt="" class="message-avatar avatar-user">
											<div class="message">
												<if condition="$v.userid eq $info.userid ">用户
													<else/>客服</if><span class="message-date"> {$v.addtime} </span>
												<span class="message-content">{$v.desc}</span>
											</div>
										</div>
										<div class="chat-message">
											<img class="message-avatar" src="__STATIC__/img/<if condition='$v.userid eq $info.userid'>pgyuser2.png<else/>pgykf.png</if>" alt="" class="message-avatar avatar-user">
											<div class="message">
												<if condition="$v.userid eq $info.userid ">客服
													<else/>用户</if>
												<span class="message-date"> {$v.addtime} </span>
												<span class="message-content">您好,请在设置里面设置是内部上传</span>
											</div>
										</div>
									</foreach>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-12">
								<div class="chat-message-form">
									<form action="{:U('ticket/update')}" method="post">
										<div class="form-group">
											<textarea class="form-control message-input" name="desc" placeholder="请输入回复内容" style="resize: none;"></textarea>
										</div>
										<div class="form-group" style="margin: 20px;">
											<input type="hidden" name="id" value="{$info.id}"/>
											<button class="btn btn-info" type="submit">保存内容</button>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- 全局js -->
<script src="__STATIC__/js/jquery.min.js"></script>
<script src="__STATIC__/js/bootstrap.min.js"></script>
<!-- 自定义js -->
<script src="__STATIC__/js/content.js"></script>
</body>

</html>